package com.java_enum;

import java.util.Calendar;
import java.util.Scanner;

public class FatherDay {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入年份");
        int year=in.nextInt();
        Calendar c=Calendar.getInstance();
        c.set(Calendar.YEAR,year);
        c.set(Calendar.MONTH,5);
        c.set(Calendar.WEEK_OF_MONTH,4);
        c.set(Calendar.DAY_OF_WEEK,1);//国外将周日看做一周的第一天
        System.out.println("父亲节是"+c.get(Calendar.YEAR)+"年"+(c.get(Calendar.MONTH)+1)+"月"+c.get(Calendar.DAY_OF_MONTH)+"日");

    }
}
